import Layout from '@/layout'

export default {
  path: '/employees',
  component: Layout,
  children: [
    {
      path: '',
      name: 'employees',
      component: () => import('@/views/employees'),
      meta: { title: '员工', icon: 'people' }
    },
    {
      path: 'detail/:id', // 这里不加斜杠  / 加了就是根路径 不是拼接
      // :id  是params的传参形式 传和接收 路由 不需要配置
      hidden: true,
      component: () => import('@/views/employees/detail'),
      meta: { title: '员工详情', icon: 'people' }
    },
    // 员工打印页
    {
      name: 'employees',
      path: 'print/:id', // :id  是params的传参形式 传和接收 路由 不需要配置
      component: () => import('@/views/employees/print'), // src\views\employees\print.vue
      hidden: true,
      meta: {
        title: '员工打印'
      }
    }
  ]
}

